package cn.icanci;

/**
 * @Author: icanci
 * @ProjectName: kangaroo-orm
 * @PackageName: cn.icanci
 * @Date: Created in 2020/8/25 20:48
 * @ClassAction: 测试是否可以拿到数据库驱动
 */
public class Main {
    public static void main(String[] args) {
        try {
            // 新的驱动连接方式
            Class<?> clazz = Class.forName("com.mysql.cj.jdbc.Driver");
            // 已经过时的数据库连接
            Class<?> clazz2 = Class.forName("com.mysql.jdbc.Driver");
            System.out.println(clazz);
            System.out.println(clazz2);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
